package com.sikaryofficial.dataindicator.domain.dto.resp;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.sikaryofficial.common.core.annotation.LocalDateTimeFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class UserBehaviorDataResponse {
    private String id;
    /**
     * 上报时间戳
     */
    @ApiModelProperty(value = "时间")
    @LocalDateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rpTime;

    /**
     * 事件类型
     */
    @ApiModelProperty(value = "事件类型")
    private String type;
    /**
     * 路径
     */
    @ApiModelProperty(value = "路径")
    private String path;
    @ApiModelProperty(value = "xpath")
    @JsonProperty("xpath")
    private String xPath;

    @ApiModelProperty(value = "ip")
    private String ip;
    @ApiModelProperty(value = "国家")
    private String ipCountry;
    @ApiModelProperty(value = "省份")
    private String ipProvince;
    @ApiModelProperty(value = "城市")
    private String ipCity;

    /**
     * 来路
     */
    @ApiModelProperty(value = "来路")
    private String referer;
    @ApiModelProperty(value = "userAgent")
    private String userAgent;
    @ApiModelProperty(value = "设备")
    private String client;

    /**
     * 追踪标识（来源）
     */
    @ApiModelProperty(value = "追踪标识（来源）")
    private String source;

    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "用户名称")
    private String userName;
    @ApiModelProperty(value = "邮箱")
    private String userEmail;
}
